import request from '@/utils/request'

import * as path from '@/contents/path'
/**
 * @description 注释
 * @param {{mobile: String, code: String}} aaa
 * @returns { promise <{message: String, data: Object }> }
 * @description 发送请求登陆
 */
export const login = aaa => {
  return request({
    url: path.LOGIN,
    method: 'POST',
    data: aaa
  })
}

/**
 * @param {{mobile: String}} aaa
 * @returns { promise <{message: String }> }
 * @description 发送验证码
 */

export const mobile = aaa => {
  return request({
    url: path.MOBIL + aaa,
    method: 'GET'
  })
}
export const userinfo = () => {
  return request({
    url: path.INFO,
    method: 'GET'
  })
}
